package com.zhenyi;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author ：zhenyi
 * @date ：2020/7/15 0:25
 * @description：${description}
 */
public class UserServiceImpl implements UserService, FactoryBean<User> {
	public User getUserByName(String name) {
		User user = new User();
		user.setName(name);
		user.setAge(45);
		return user;
	}

	@Override
	public User getObject() throws Exception {
		return new User();
	}

	@Override
	public Class<?> getObjectType() {
		return null;
	}
}
